<?php

	require_once 'appinclude.php';
	require_once 'sqlLib.php';
	require_once 'logsLib.php';
	require_once 'generalLib.php';
	
	$currentPage = 'send';
	date_default_timezone_set("UTC");
	$user_id = $facebook->user;
	$sqlDb = new mysqli("localhost", "root", "", "messages");
	$sqlDb->query('SET NAMES utf8');
	
	if(isset($_REQUEST['text'])) {
		$message_name = $_REQUEST['text'];
		$index = enterNewMsgRow($sqlDb,$message_name,$user_id,0,'no file');
		echo "enterNewMsgRow: $index";
	} else {
		echo "type hebrew"
		?>
		<form method="GET" action="test.php">
		<input type="text" name="text" >
		</form>
		<?php
	}
	
	
	
	
	?>